package tt.dz.egobus.servicemanager.business.convert;

import org.springframework.core.convert.converter.Converter;
import tt.dz.egobus.servicemanager.business.task.job.QuartzDynamicTask;

/**
 * @author Anson
 * @date 17-8-15
 * @name 根据当前任务类转换一个当前任务h前缀
 * @since 1.0.6
 */
public class DynamicPreKeyConvert implements Converter<Class<? extends QuartzDynamicTask>, String> {
    @Override
    public String convert(Class<? extends QuartzDynamicTask> clazz) {
        return clazz == null ? "" : clazz.getName();
    }
}
